<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>
	ThundeRex中美专递|中美专递|快递|中美送|电子商务物流解决方案
</title>
<link href="{CSS_PATH}fenglei_css/Member.css" rel="stylesheet" type="text/css" />
    <script src="{JS_PATH}fenglei_js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <meta http-equiv="pragma" content="no-cache" /><meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
	<script>
		//申报类别
		function sblb(n){
			for(var i=0;i<n-$(".divGoods").length;i++){
				$("#divGood").clone().appendTo($("#divlist"));
			}
		}
		
		//预估运费
		function ygyf(){
			if(!CheckForm()) return false;
			//根据发货渠道和预估重量计算包裹运费
			var ddlQudao = $("#ddlQudao").val();
			var tbForcastWeight = $("#tbForcastWeight").val();
			var tbDepotInsure = $("#tbDepotInsure").val();
			var lbBagFee = 0;
			//A渠道
			if(ddlQudao==1){
				
				if(tbForcastWeight<=1){
					lbBagFee = 70.00;
				}else if(tbForcastWeight<=2){
					lbBagFee = 75.00;
				}else if(tbForcastWeight<=3){
					lbBagFee = 95.00;
				}else if(tbForcastWeight<=4){
					lbBagFee = 120.00;
				}else{
					lbBagFee = 120+(tbForcastWeight-4)*25;
					
				}
				
			}else if(ddlQudao==3){
				if(tbForcastWeight<=1){
					lbBagFee=185;
				}else{
						lbBagFee=185+(tbForcastWeight-1)*30;
					}				
			}else if(ddlQudao==4){
				if(tbForcastWeight<=1){
					lbBagFee=196;
				}else{
						lbBagFee=196+(tbForcastWeight-1)*34;
					}		
			}else if(ddlQudao==4){
				if(tbForcastWeight<=1){
					lbBagFee=220;
				}else{
						lbBagFee=220+(tbForcastWeight-1)*40;
					}		
			}
			var zongjia=lbBagFee+Number(tbDepotInsure);
			//alert(tbDepotInsure);
			$("#lbBagFee").html(lbBagFee);
			$("#lbDepotFee").html(tbDepotInsure);
			$("#lbForcastFee").html(zongjia);
			$("#divForcastFee").show();
			$("#btSubmit").removeAttr("disabled");
			
		}

	</script>
</head>
 <div id="orderbox">
        <div id="title">
            <span class="spanleft">原箱闪运</span>
        </div>
        <div id="divbody">
            <div class="banner">
                <span>第一步：到货预报（设定您的单号信息）</span>
            </div>
            <div class="content">
            <form action="index.php?m=order&c=index&a=add_order" method="post">
                <div class="divitem">
                    <label class="label2">
                        收货仓库：
					</label>
					<select name="warehouse" id="ddlDepot">
						<option value="CA">美国加利福尼亚州洛杉矶</option>
						<option value="OR">美国俄勒冈免税州(发往此地址的包裹需五个工作日后入库)</option>
					</select>
                </div>
                <div class="divitem">
                    <label class="label2">
                        转运公司：</label>
						<select name="zhcompany" id="ddlEx">
							<option value="UPS">UPS</option>
							<option value="FEDEX">FEDEX</option>
							<option value="USPS">USPS</option>
							<option value="DHL">DHL</option>
							<option value="TNT">TNT</option>
							<option value="EMS">EMS</option>
							<option value="ONTRAC">ONTRAC</option>
							<option value="其他">其他</option>
						</select>
                </div>
                <div class="divitem">
                    <label class="label2">
                        转运号码：</label><input name="zhnumber" type="text" maxlength="50" id="tbExNum" style="width:200px;">&nbsp;&nbsp;<span id="rfvExNum" style="color:Red;display:none;">号码不能为空</span>&nbsp;&nbsp;<span style="color: blue;">请填写购物网站提供给您的快递单号</span>
                </div>
                <div class="divitem">
                    <label class="label2">
                        仓储保价：</label>￥<input name="whprice" type="text" value="0" maxlength="10" id="tbDepotInsure" style="width:50px;">&nbsp;&nbsp;<span id="revDepotInsure" style="color:Red;display:none;">格式错误</span>&nbsp;&nbsp;<br>
                    <span style="color: blue;">仓储保价费率为1%，即填写￥1（结算时，计入订单总价），表示购买￥100的仓储保价，详情请见<span style="font-size: 12px;
                        color: #0362A0; font-weight: bold;"><a href="index.php?m=content&c=index&a=show&catid=22&id=19" target="_blank">仓储保价说明</a></span>。</span>
                </div>
            </div>
            <div class="banner">
                <span>第二步：收货地址（设定您的收货信息）</span><span id="lbAddAddrs"></span>
            </div>
            <div class="content">
                <div id="UpdatePanel2">
	
                        <div class="divitem">
                            <span class="label2">发货渠道：</span>
                            <select name="channel"  id="ddlQudao" style="width:85px;">
								<option selected="selected" value="1">默认渠道</option>
								<option value="3">C</option>
								<option value="4">D</option>
								<option value="5">E</option>
							</select>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <a href="index.php?m=content&c=index&a=show&catid=22&id=16" target="_blank">渠道说明</a>&nbsp;&nbsp;&nbsp;&nbsp;
                            <span id="lbHintQudao" style="color:Red;">需要上传身份证，支持使用优惠券。需要填写中文品名、地址。</span>
                            <input type="hidden" name="hfEnReport" id="hfEnReport" value="0">
                        </div>
                                      
				</div>
                <div id="UpdatePanel1">
	
                        <div class="divitem">
                            <label class="label1">
                            
           选择收货地址：</label><select name="shaddress" onchange="adcheck()" id="ddlAddr">							           
	
               		 {loop $data $r}
							<option selected="selected" value="{$r[id]}">{$r[consignee]}</option>
					 {/loop}
							</select>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span id="lbHintIDImage" style="color:Red;">未上传证件照</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="lbHintIDNum" style="color:Blue;">已填写证件号</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="lbEnAddr" style="color:Red;">无英文地址</span>
                           <!-- <input type="hidden" name="sha" id="hfEnAddr" value="0"> -->
                        </div>
                        <div class="divitem">
                            <label class="label1">
                                收货公司/人：</label><span id="lbCompany">{$data[0][consignee]}</span>
                        </div>
                        <div class="divitem">
                            <label class="label1">
                                联系电话/手机：</label><span id="lbCell">{$data[0][phone]}{$data[0][tel]}</span>
                        </div>
                        <div class="divitem">
                            <label class="label1">
                                收货地址/邮编：</label><span id="lbAddr">{$data[0][postcode]}</span>
                        </div>

				</div>
            </div>
            <div class="banner">
                <span>第三步：货物信息（填写货物详情）</span>
            </div>
            <div class="content">
                <div class="divitem">
                    <span class="label2">预估重量：</span><input name="weight" type="text" maxlength="10" id="tbForcastWeight" style="width:104px;">&nbsp;&nbsp;(磅)&nbsp;&nbsp;<span id="revForcastWeight" style="color:Red;display:none;">格式错误</span><span id="rfvWeight" style="color:Red;display:none;">重量不能为空</span>&nbsp;&nbsp;<span style="color: Red;">预估运费将根据您的预估重量来计算.</span>
                </div>
                <div class="divitem">
                    <span class="label2">申报类别：</span>
                    <select name="leishu" onchange="sblb(this.value)" id="ddlNum">
						<option selected="selected" value="1">1类</option>
						<option value="2">2类</option>
						<option value="3">3类</option>
						<option value="4">4类</option>
						<option value="5">5类</option>
						<option value="6">6类</option>
						<option value="7">7类</option>
						<option value="8">8类</option>
						<option value="9">9类</option>
						<option value="10">10类</option>
						<option value="11">11类</option>
						<option value="12">12类</option>
						<option value="13">13类</option>
						<option value="14">14类</option>
						<option value="15">15类</option>
						<option value="16">16类</option>
						<option value="17">17类</option>
						<option value="18">18类</option>
						<option value="19">19类</option>
						<option value="20">20类</option>
					</select>
                    &nbsp;&nbsp;<span class="style1">不需要填写具体品牌且不超过10个字。正确格式例如：<strong>彩色笔</strong>；<strong>玻璃奶瓶</strong>。（每行一个）</span>
                </div>
                <div id="divlist" class="divitem">
                    <div class="divGoods" id="divGood">
                        商品类别：
						<select id="select1" name="category[]" onchange="CountPrice()">
                            <option value="0.1">食品，饮料类</option>
                            <option value="0.5">烟酒类</option>
                            <option value="0.2">纺织品类</option>
                            <option value="0.1">皮革制品类</option>
                            <option value="0.1">箱包类</option>
                            <option value="0.1">鞋靴类</option>
                            <option value="0.2">钟表及配件类</option>
                            <option value="0.1">饰品及收藏品类</option>
                            <option value="0.5">化妆品，洗护用品类</option>
                            <option value="0.1">医疗器械类</option>
                            <option value="0.1">厨卫用品类</option>
                            <option value="0.2">小家电类</option>
                            <option value="0.1">家具类</option>
                            <option value="0.1">摄像器材及配件类</option>
                            <option value="0.2">大型家电及配件类</option>
                            <option value="0.2">影音设备及附件类</option>
                            <option value="0.1">音像制品类</option>
                            <option value="0.1">玩具，文体用品类</option>
                            <option value="0.2">推车，自行车类</option>
                            <option value="0.1">乐器类</option>
                            <option value="0.1">计算机及其外围设备类</option>
                        </select>
						&nbsp;&nbsp;商品名称：<input name="name1" id="name1" type="text" onblur="checkWord(20,this)" maxlength="20" style="width: 120px;">
						&nbsp;&nbsp;数量：<input name="num1" id="num1" type="text" maxlength="10" onkeyup="CountPrice()" style="width: 50px;">
						&nbsp;&nbsp;单价：$<input name="value1" id="value1" type="text" maxlength="10" onkeyup="CountPrice()" style="width: 50px;">
                    </div>
					
					
					
                </div>
                <div id="UpdatePanel3">
	
                        <div class="divitem">
                            <span class="label2">申报价值：</span>$<input name="shbvalue" type="text" value="0" maxlength="10" readonly="readonly" id="tbValue" style="width:104px;">
                            &nbsp;&nbsp;<span class="style2"><strong>=￥</strong></span><strong><span id="lbRMB" class="style2">0</span>
                            </strong>&nbsp;&nbsp;<span class="style1">友情提醒：申报总价值超过500人民币的包裹的交税几率会大大增加。</span>
                        </div>
                        <div class="divitem">
                            <span class="label2">关税预估：</span><strong>￥<span id="lbTax">0</span></strong>
                            &nbsp;&nbsp;&nbsp;&nbsp;参考标准：&nbsp;&nbsp;中国进境物品归类表<a href="/download/中华人民共和国进境物品归类表.doc">(点击下载)</a>&nbsp;&nbsp;&nbsp;&nbsp;中国进境物品完税价格表<a href="/download/中华人民共和国进境物品完税价格表.doc">(点击下载)</a>
                        </div>
                        
						<!--
                        <div class="divitem">
                            <label class="label2">
                                &nbsp;</label>
                            <input id="cbInsure" type="checkbox" name="cbInsure" onclick="javascript:setTimeout('__doPostBack(\'cbInsure\',\'\')', 0)"><label for="cbInsure">使用货品保价服务</label>
                            &nbsp;&nbsp;&nbsp;&nbsp;￥<input name="tbInsure" type="text" readonly="readonly" id="tbInsure" style="width:40px;">&nbsp;&nbsp;&nbsp;&nbsp;<a href="/CostShow/Insure.aspx" target="_blank">保价规定</a>&nbsp;&nbsp;<span style="color: blue;">计算公式：申报金额(不小于$100)*汇率(6.4)*2%
                                </span>
                        </div>
                        -->
                        
						
                        <div class="divbut" >
                            <input type="button" name="btCalOrder" value="预估运费" onclick="ygyf()" id="btCalOrder" class="buttonA" style="height:25px;width:60px;">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </div>
                        <div class="divitem" style="color: #FF0000; font-size: medium">
                            <strong>运费预估信息如下：</strong>
                        </div>
                        
						
                        <div id="divForcastFee" class="divitem"  style="display:none" >
                            <div style="float: left; width: 300px; margin-bottom: 4px;">
                                <span class="label2">包裹运费:</span>￥<span id="lbBagFee"></span>
                            </div>
                            <div style="float: left; width: 300px; margin-bottom: 4px;">
                                <span class="label2">库存保价:</span>￥<span id="lbDepotFee"></span>
                            </div>
                            <div style="float: left; width: 600px; margin-bottom: 4px;">
                                <span class="label2">总计运费：</span> ￥<span id="lbForcastFee" style="color:Red;font-size:16px;font-weight:bold;font-style:italic;">0</span>
                                &nbsp;&nbsp;&nbsp;&nbsp;<br>
                                <span style="color: blue;">请保证在包裹入库前，您的账户余额大于此次的预估运费，即可开启极速原箱闪运服务。如果帐户余额不足，将自动转为普通服务入库。
                                </span>
                            </div>
                        </div>
                        <div class="divbut" style="text-align: center; margin: 4px;" >
                            <span id="lbError" style="color:Red;font-weight:bold;"></span>
                        </div>
						<input type="hidden" name="hfValue" id="hfValue" value="0" />
						<input type="hidden" name="hfValueRMB" id="hfValueRMB" value="0" />
						<input type="hidden" name="hfGoodsTax" id="hfGoodsTax" />
						<input type="hidden" name="hfGoodsName" id="hfGoodsName" />
						<input type="hidden" name="hfGoodsNum" id="hfGoodsNum" />
						<input type="hidden" name="hfGoodsValue" id="hfGoodsValue" />
						<input type="hidden" name="hfReport" id="hfReport" />
						<input type="hidden" name="hfTax" id="hfTax" value="0" />

                        <div id="divbut" class="divbut">
                            <input type="submit" name="dosubmit" value="提交订单" id="btSubmit"  disabled="disabled" class="aspNetDisabled buttonA" style="height:25px;width:60px;">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <input type="button" class="buttonA" onclick="window.history.go(-1);" value="返回" style="width: 60px; height: 25px">
                        </div>
                    
</div>
            </div>
        </div>
        
    </div>
    
<script type="text/javascript">
//<![CDATA[
var Page_Validators =  new Array(document.getElementById("rfvExNum"), document.getElementById("revDepotInsure"), document.getElementById("revForcastWeight"), document.getElementById("rfvWeight"));
//]]>
</script>

<script type="text/javascript">
//<![CDATA[
var rfvExNum = document.all ? document.all["rfvExNum"] : document.getElementById("rfvExNum");
rfvExNum.controltovalidate = "tbExNum";
rfvExNum.errormessage = "号码不能为空";
rfvExNum.display = "Dynamic";
rfvExNum.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
rfvExNum.initialvalue = "";
var revDepotInsure = document.all ? document.all["revDepotInsure"] : document.getElementById("revDepotInsure");
revDepotInsure.controltovalidate = "tbDepotInsure";
revDepotInsure.errormessage = "格式错误";
revDepotInsure.display = "Dynamic";
revDepotInsure.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
revDepotInsure.validationexpression = "\\d*\\.?\\d{0,2}";
var revForcastWeight = document.all ? document.all["revForcastWeight"] : document.getElementById("revForcastWeight");
revForcastWeight.controltovalidate = "tbForcastWeight";
revForcastWeight.errormessage = "格式错误";
revForcastWeight.display = "Dynamic";
revForcastWeight.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
revForcastWeight.validationexpression = "\\d*\\.?\\d{0,2}";
var rfvWeight = document.all ? document.all["rfvWeight"] : document.getElementById("rfvWeight");
rfvWeight.controltovalidate = "tbForcastWeight";
rfvWeight.errormessage = "重量不能为空";
rfvWeight.display = "Dynamic";
rfvWeight.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
rfvWeight.initialvalue = "";
//]]>
</script>


<script type="text/javascript">
//<![CDATA[

var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}

function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
        
document.getElementById('rfvExNum').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rfvExNum'));
}

document.getElementById('revDepotInsure').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('revDepotInsure'));
}

document.getElementById('revForcastWeight').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('revForcastWeight'));
}

document.getElementById('rfvWeight').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('rfvWeight'));
}
//]]>
</script>
</form>
    <script type="text/javascript">
        function freePartAlert() {
            var radioName = "rblFreePart";
            var obj = document.getElementsByName(radioName);             //这个是以标签的name来取控件
            for (i = 0; i < obj.length; i++) {
                if (obj[i].checked) {
                    if (obj[i].value == "4") {
                        alert('友情提醒\n\n原重分箱:在包裹重量过大时，会有缴税或者退运等风险。\n\n我司将严格按照客户选择的服务方式处理订单，处理之后再要求重新包装的，我司将收取每磅￥5的操作费。若有其他特殊要求，请在订单备注留言写明。');
                    }
                    if (obj[i].value == "2") {
                        alert('友情提醒\n\n多件合并:在包裹重量过大时，会有缴税或者退运等风险。\n\n我司将严格按照客户选择的服务方式处理订单，处理之后再要求重新包装的，我司将收取每磅￥5的操作费。若有其他特殊要求，请在订单备注留言写明。');
                    }
                    if (obj[i].value == "3") {
                        alert('友情提醒\n\n混装分箱:仓库将根据以往打包经验为您合理分箱合并，另外，货物包装没有统一标准可以做到完全避免关税，我司将根据实际情况进行操作。\n\n我司将严格按照客户选择的服务方式处理订单，处理之后再要求重新包装的，我司将收取每磅￥5的操作费。若有其他特殊要求，请在订单备注留言写明。');
                    }
                }
            }
            return "undefined";
        }

        function CountPrice() {
            //alert('1');
            var classboxs = document.getElementsByName("select1");
            var numboxs = document.getElementsByName("num1");
            var valueboxs = document.getElementsByName("value1");
            var tbValue = document.getElementById("tbValue");
            var hfValue = document.getElementById("hfValue");
            var hfValueRMB = document.getElementById("hfValueRMB");
            var hfTax = document.getElementById("hfTax");

            var lbRMB = document.getElementById("lbRMB");
            var lbTax = document.getElementById("lbTax");

            var amountvalue = 0;
            var reg = "";
            var tax = 0;

            for (i = 0; i < numboxs.length; i++) {
                if (numboxs[i].value != "") {
                    reg = /^\d*$/;
                    if (!reg.test(numboxs[i].value)) {
                        alert("商品数量格式不对!")
                        numboxs[i].focus();
                        return false;
                    }
                }
                if (valueboxs[i].value != "") {
                    reg = /^\d*\.?\d{0,2}$/;
                    if (!reg.test(valueboxs[i].value)) {
                        alert("商品价值格式不对!")
                        valueboxs[i].focus();
                        return false;
                    }
                }
                if (valueboxs[i].value != "" && numboxs[i].value != "") {
                    //开始计算价格
                    amountvalue += Number(valueboxs[i].value) * Number(numboxs[i].value);
                    tax += Number(valueboxs[i].value) * Number(numboxs[i].value) * 6.4 * classboxs[i].options[classboxs[i].selectedIndex].value;
                }
            }
            tbValue.value = ForDight(amountvalue, 2);
            hfValue.value = ForDight(amountvalue, 2);
            lbRMB.innerText = ForDight((amountvalue * 6.4), 2);
            hfValueRMB.value = ForDight((amountvalue * 6.4), 2);
            hfTax.value = ForDight(tax, 2);
            lbTax.innerText = ForDight(tax, 2);
        }
        function ForDight(Dight, How) {
            Dight = Math.round(Dight * Math.pow(10, How)) / Math.pow(10, How);
            return Dight;
        }
        function CalInsure() {

        }
        function checkInput(check) {
            var check_id = check.id;
            var check_num = check_id.substring(10, check_id.length);
            var input_id = "inputClass" + check_num;
            var input_box = document.getElementById(input_id);
            if (input_box.disabled == false) {
                input_box.disabled = true;
            }
            else {
                input_box.disabled = false;
            }
        }
        function CheckForm() {
            var reg;
            var weight = document.getElementById("tbForcastWeight");
            var depotinsure = document.getElementById("tbDepotInsure");
            var exnum = document.getElementById("tbExNum");
            var goodsName = "";
            var hfGoodsTax = document.getElementById("hfGoodsTax");
            var hfGoodsName = document.getElementById("hfGoodsName");
            var hfGoodsNum = document.getElementById("hfGoodsNum");
            var hfGoodsValue = document.getElementById("hfGoodsValue");
            var hfReport = document.getElementById("hfReport");
            var tbValue = document.getElementById("tbValue");
            var hfEnReport = document.getElementById("hfEnReport");
            var hfEnAddr = document.getElementById("hfEnAddr");
            var value_hint = "";


            /* var header = document.getElementById("tbOrderHeader");
            if (header.value == "") {
            alert("请填写您的订单抬头!")
            header.focus();
            return false;
            }*/
            var reg = /^[0-9a-zA-Z ]*$/;
            if (exnum.value == "") {
                alert("请填写您的转运号码!")
                exnum.focus();
                return false;
            }
            else {
                if (exnum.value.length < 10) {
                    alert("请输入10位以上转运单号!");
                    exnum.focus();
                    return false;
                }
                if (exnum.value.length > 50) {
                    alert("转运单号不能超过50位!");
                    exnum.focus();
                    return false;
                }
                exnum.value = exnum.value.replace(/,/g, '，')
                exnum.value = exnum.value.replace(/'/g, '\"')
                exnum.value = exnum.value.replace(/and/g, '&')
                exnum.value = exnum.value.replace(/ /g, '')
                if (!reg.test(exnum.value)) {
                    alert("您填写的转运号码格式不对!")
                    exnum.focus();
                    return false;
                }
            }

            if (depotinsure.value == "") {
                alert("请填写您的仓储保价!")
                depotinsure.focus();
                return false;
            }
            else {
                reg = /^\d*\.?\d{0,2}$/;
                if (!reg.test(depotinsure.value)) {
                    alert("您填写的仓储保价格式不对!")
                    depotinsure.focus();
                    return false;
                }
            }
            if (weight.value == "") {
                alert("请填写您的预估重量!")
                weight.focus();
                return false;
            }
            else {
                reg = /^\d*\.?\d{0,2}$/;
                if (!reg.test(weight.value)) {
                    alert("您填写的预估重量格式不对!")
                    weight.focus();
                    return false;
                }
            }



            if (tbValue.value * 6.3 > 500) {
                value_hint = "友情提醒：申报总价值超过500人民币的包裹的交税几率会大大增加。";
            }

            hfGoodsTax.value = "";
            hfGoodsName.value = "";
            hfGoodsNum.value = "";
            hfGoodsValue.value = "";
            hfReport.value = "";

            var goods_value = document.getElementById("tbValue");
            if (goods_value.value == "") {
                alert("请填写您的申报价值!")
                goods_value.focus();
                return false;
            }
            else {
                reg = /^\d*\.?\d{0,2}$/;
                if (!reg.test(goods_value.value)) {
                    alert("您填写的申报价值格式不对!")
                    goods_value.focus();
                    return false;
                }
            }

            var taxboxs = document.getElementsByName("select1");
            var nameboxs = document.getElementsByName("name1");
            var numboxs = document.getElementsByName("num1");
            var valueboxs = document.getElementsByName("value1");
            for (i = 0; i < numboxs.length; i++) {
                if (nameboxs[i].value == "") {
                    alert("商品名称不能为空!")
                    nameboxs[i].focus();
                    return false;
                }
                else {
                    if (hfEnReport.value == "1") {
                        reg = /^[A-Za-z0-9\s,.]+$/;
                        if (!reg.test(nameboxs[i].value)) {
                            alert("该渠道品名只能输入英文，请重新填写!")
                            nameboxs[i].focus();
                            return false;
                        }
                        if (hfEnAddr.value == "0") {
                            alert("该渠道需要填写英文收件地址，请至地址管理中填写!")
                            return false;
                        }
                    }
                    else {
                        reg = /^[A-Za-z0-9\u4e00-\u9fa5,.，。\s；;]+$/;
                        if (!reg.test(nameboxs[i].value)) {
                            alert("该渠道品名只能输入中文，请重新填写!")
                            nameboxs[i].focus();
                            return false;
                        }
                    }
                }

                if (numboxs[i].value == "") {
                    alert("商品数量不能为空!")
                    numboxs[i].focus();
                    return false;
                }
                if (valueboxs[i].value == "") {
                    alert("商品价值不能为空!")
                    valueboxs[i].focus();
                    return false;
                }


                if (numboxs[i].value != "") {
                    reg = /^\d*$/;
                    if (!reg.test(numboxs[i].value)) {
                        alert("商品数量格式不对!")
                        numboxs[i].focus();
                        return false;
                    }
                }
                if (valueboxs[i].value != "") {
                    reg = /^\d*\.?\d{0,2}$/;
                    if (!reg.test(valueboxs[i].value)) {
                        alert("商品价值格式不对!")
                        valueboxs[i].focus();
                        return false;
                    }
                }

                goodsName += nameboxs[i].value + ",";
                hfGoodsTax.value += taxboxs[i].value + "|";
                hfGoodsName.value += nameboxs[i].value + "|";
                hfGoodsNum.value += numboxs[i].value + "|";
                hfGoodsValue.value += valueboxs[i].value + "|";
            }
            goodsName = goodsName.substring(0, goodsName.length - 1);

            hfGoodsTax.value = hfGoodsTax.value.substring(0, hfGoodsTax.value.length - 1);
            hfGoodsName.value = hfGoodsName.value.substring(0, hfGoodsName.value.length - 1);
            hfGoodsNum.value = hfGoodsNum.value.substring(0, hfGoodsNum.value.length - 1);
            hfGoodsValue.value = hfGoodsValue.value.substring(0, hfGoodsValue.value.length - 1);

            hfReport.value = goodsName;

            var goods_hint = goodsName;
            goods_hint = "请确认您的申报品名:\n" + goods_hint + "\n\n" + value_hint;
            if (confirm(goods_hint))
                return true;
            else
                return false;
        }
    </script>
    <script type="text/javascript">

        var wBox_free = $("#wb_free").wBox({
            title: "免费服务说明",
            html: "<div style='width:500px;font-size:14px;'>1.不分箱发货</br><<span style='color:#00F;'>不分箱，按仓库收到的货物重量直接发送；</span></br></br>2.单件分箱</br><span style='color:#00F;'>一个包裹分为多个；</span></br></br>2.多件合并</br><span style='color:#00F;'>多个包裹合并为一个；</span></br></br>3.混装分箱</br><span style='color:#00F;'>多个包裹内的货物混合重新包装。</span></br></br>4.保留单据</br><span style='color:#00F;'>保留包裹中的所有单据；</span></br></br>5.取出单据</br><span style='color:#00F;'>去掉包裹中的所有单据。</span></div>"
        });
        var wBox_pay = $("#wb_pay").wBox({
            title: "收费服务说明",
            html: "<div style='width:500px;font-size:14px;'>1.特殊加固</br><span style='color:#00F;'>对要求此服务的货物用专业包装材料进行加固，防止破损，适用于奶粉，玻璃奶瓶等易碎品；</br>费用：￥2.50/lb（以整个订单的出库重量计算）</span></br><span style='color:red;font-size:12px;'>注：特殊加固处理后的出货重量一般会高于入库重量。</span></br></br>2.清点服务</br><span style='color:#00F;'>清点客户提交的订单内货物件数，但不负责核对货物的正确性；</br>费用：￥0.5/货物件数（以核对的总数目计算，比如十双鞋，总费用即0.5*10＝￥5）</span></br></br>3.退货服务</br><span style='color:#00F;'>客户要将货物退回网站；</br>费用：￥10/包裹</span></br><span style='color:red;font-size:12px;'>注：若包裹内有免费退货标签，我司将不收取其他费用；若无免费退货标签，我司将用FEDEX GROUND服务帮客户退回网站，客户需自行支付这部分运费。</span></div>"
        });
   
    </script>

</div>
	<!--右边区域代码 end-->
            </div>
        </div>
        <div id="bottom">
            <div class="left">
               
				</div>
            
            </div>
        </div>
    </div>
    
    </form>
    <div id="fd" class="fd">
        <div id="open">
            <div class="tlt">
                <span id="lbFDTitle">默认渠道恢复发货</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <iframe width="136" height="24" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" border="0" src="http://widget.weibo.com/relationship/followbutton.php?language=zh_cn&width=136&height=24&uid=2511698570&style=2&btn=light&dpc=1"></iframe>
                <div class="closew">
                    <a href="#" onclick="closeed('fd');return false;">
                        <img alt="" src="{IMG_PATH}fenglei_img/wopen_close.gif" /></a></div>
            </div>
             <div style="background: #EFF1F8; height: 50px;">
            </div>
        </div>
    </div>
    <script type="text/javascript">
        function correctPNG() {
            for (var i = 0; i < document.images.length; i++) {
                var img = document.images[i]
                var imgName = img.src.toUpperCase()
                if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
                    var imgID = (img.id) ? "id='" + img.id + "' " : ""
                    var imgClass = (img.className) ? "class='" + img.className + "' " : ""
                    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
                    var imgStyle = "display:inline-block;" + img.style.cssText
                    if (img.align == "left") imgStyle = "float:left;" + imgStyle
                    if (img.align == "right") imgStyle = "float:right;" + imgStyle
                    if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
                    var strNewHTML = "<span " + imgID + imgClass + imgTitle
   + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
   + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
                    img.outerHTML = strNewHTML
                    i = i - 1
                }
            }
        }
        window.attachEvent("onload", correctPNG); 
    </script>
    <script type="text/javascript">
		function  adcheck(){
		var t=document.getElementById("ddlAddr")
		var dizhi=document.getElementById("ddlAddr");
		var shhuo=document.getElementById("lbCompany");
		var dizhi=document.getElementById("lbAddr");
		var cell=document.getElementById("lbCell");
		
		t=parseInt(t.value);
		//alert(t);
		//t=parseInt(t);
		//alert(t)
		//var t=2;
		//window.alert(shhuo.innerHTML);
			
			switch (t){
				{loop $data $r}
					case {$r[id]}:{
						shhuo.innerHTML="{$r[consignee]}";
						dizhi.innerHTML="{$r[c_address]}";
						cell.innerHTML="{$r[phone]}&nbsp;{$r[tel]}";
						break;
										
					}
				{/loop}
				default :
						alert("失败了");
		}
		//window.alert(shhuo.innerHTML);
	}
	 
	
	
	</script>
</body>
</html>
